package com.sinodata.atmc.business
{
	import com.sinodata.atmc.bean.IDCardReaderParamBean;
	
	import flash.external.ExternalInterface;

	public class CardReaderOCX implements ICardReaderOCX
	{
		public function CardReaderOCX()
		{
		}
		
		public function idcOpen(bean:IDCardReaderParamBean,resultFun:Function)
		{
			//js事件的回调方法
			ExternalInterface.addCallback(bean.callbackName,resultFun);
			//调用JS的方法
			var result:String = ExternalInterface.call(bean.callJsName,bean.timeout*1000);
			return result;
		}
		
		
	}
}